package Song.Han.demo03;

/*
模拟买票案例：
    创建3个线程，同时卖票,出现线程安全问题
*/
public class Demo01Ticket {
    public static void main(String[] args) {

        RunnableImpl run = new RunnableImpl();

        Thread t0 = new Thread(run);
        Thread t1 = new Thread(run);
        Thread t2 = new Thread(run);

        t0.start();
        t1.start();
        t2.start();
    }
}
